import Vue from 'vue'
import Router from 'vue-router'

import home from '../components/tabbar/home'
import Membar from '../components/tabbar/Member'
import Shopcar from '../components/tabbar/Shopcar'
import search from '../components/tabbar/search'
import newslist from '../components/news/newslist'
import newsinfo from "../components/news/newsinfo"
import photolist from "../components/photo/photolist"
import photoinfo from "../components/photo/photoinfo"
import goodlist from "../components/good/goodlist"
import goodinfo from "../components/good/goodinfo"
import goodsdese from "../components/good/goodsdese"
import goodscomment from "../components/good/goodscomment"


Vue.use(Router)

export default new Router({
  routes: [
    {path:"/",redirect:"/home"},
    {path: '/home',name: 'home',component: home},
    {path: '/Member',name: 'Member',component: Membar},
    {path: '/Shopcar',name: 'Shopcar',component: Shopcar},
    {path: '/search',name: 'search',component: search},
    {path:'/home/newslist', name:"newslist",component:newslist},
    {path:'/home/newsinfo/:id',name:"newsinfo",component:newsinfo},
    {path:'/home/photolist',name:"photolist",component:photolist},
    {path:'/home/photoinfo/:id',name:"photoinfo",component:photoinfo},
    {path:"/home/goodlist",name:"goodlist",component:goodlist},
    {path:"/home/goodinfo/:id",name:"goodinfo",component:goodinfo},
    {path:"/home/goodsdese/:id",name:"goodsdese",component:goodsdese},
    {path:"/home/goodscomment/:id",name:"goodscomment",component:goodscomment}

  ]
})
